import { createRouter, createWebHashHistory} from "vue-router"


const routes = [
  {
    path: "/",
    name: "",
    // 重定向到登录页面
    redirect: "/login"
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta: {}
  },
  {
    path: "/Example",
    name: "Example",
    component: () => import("@/views/Example/index.vue"),
    meta: {}
  }
]

const routerInstance = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default routerInstance